<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="newcss.css" type="text/css">
    </head>
    <body>
        <form action="CreateUserAccountServlet" method="POST" enctype="multipart/form-data">
            <div class="main9">
                <div class="top">
                    <img src="logo.jpg" width="250px" alt="logo" align="left">

                </div>
                <div class="nav">
                    <ul>
                        <li><a href="index.jsp">Trang Chủ</a></li>
                        <c:if test="${user==null}">
                        <li><a href="dangky_form.jsp">Đăng Ký</a></li>
                        <li><a href="login_form.jsp">Đăng Nhập</a></li>
                        </c:if>
                        <c:if test="${user!=null}">
                        <li><a href="CreateAlbum.jsp">Tạo Album</a></li>
                        <li><a href="ShowAlbumServlet">Xem Album</a></li>
                        <li><a href="LogoutServlet">Đăng Xuất</a></li>
                        </c:if>
                    </ul>
                </div>
                <div class="content">
                    <center> <center><a target="_blank" href="index.jsp"><img src="image/8uzf.png" width="236"></a><a target="_blank" href="index.jsp"><img src="image/21yy.png" width="236"></a><a target="_blank" href="index.jsp"><img src="image/ua.png" width="236"></a></center> </center> <br /><br /> 
                </div>
                <div class="mid">
                    <p class="font">Đăng Ký Tài Khoản Mới</p>
                    <hr></hr>
                    <br />
                    <div class="dangky">
                            ${msg}
                            <table class="tbdk">
                                <tr>
                                    <td>Tên Tài Khoản :</td>
                                    <td><input type="text" name="username"></td>
                                </tr>
                                <tr>
                                    <td>Mật Khẩu :</td>
                                    <td><input type="password" name="password"></td>
                                </tr>

                                <tr>
                                    <td>Tên đầy đủ :</td>
                                    <td><input type="text" name="fullname"></td>
                                </tr>
                                <tr>
                                    <td>Ngày sinh :</td>
                                    <td>
                                        <input type="date" name="dateofbirth">
                                    </td>
                                </tr>
                                <tr>
                                    <td>Hòm thư :</td>
                                    <td><input type="text" name="email"></td>
                                </tr>
                                <tr>
                                    <td>Số điện thoại :</td>
                                    <td><input type="text" name="phonenumber"></td>
                                </tr>
                                <tr>
                                    <td>Ảnh của bạn :</td>
                                    <td><input type="file" name="image"></td>
                                </tr>
                                <br />
                                <tr>
                                    <td></td>
                                    <td><input type="submit" value="Gửi Thông Tin" name="Create"></td>
                                </tr>
                            </table>
                    </div>
                </div>
                <div class="footer">
                    Powered by Up anh mien phi V 2.3
                </div>
            </div>
        </form>
    </body>
</html>
